home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / ETC / AIM / !aim_macros_democer < prev    next >
Encoding:
Text File  |  1990-08-26  |  558 b   |  21 lines

  1. read cermet,a * read cermet image
  2. copy a,b      * copy to b
  3. don,3         * lowest bitplne display
  4. thr b,b,1     * threshold
  5. inv           * invert bitplane
  6. bcop 1,3      * copy bitplane
  7. ero 8         * erode 8
  8. dil 8         * dilate 8  
  9. bcop 3,1      * original
  10. dil 8,1,6,1,b * dilate 8
  11. ero 8,1,6,1,b * erode 8
  12. bcop 3,1      * copy bitplane
  13. inv           * invert
  14. -skel 100     * skeleton
  15. dil 1         * dilate (for display)
  16. inv           * invert
  17. label b,c,1   * label the regions
  18. don 4         * give color labels
  19. gdisp,c       * display bitplanes
  20. don 1
  21.